package java_0206;

public class char_string {
    public static void main(String[] args) {
        char[] data={'h','e','l','l','o'};
        String str=new String(data);
        String str1=new String(data,0,3);//左闭右开
        System.out.println(str);
        System.out.println(str1);
    }
}
